package cn.kgc.service;

import cn.kgc.mapper.PositionpushMapper;
import cn.kgc.pojo.Positionpush;
import cn.kgc.util.Page;
import java.io.Serializable;
import java.util.List;
import javax.annotation.Resource;

import com.alibaba.dubbo.config.annotation.Service;
import org.apache.ibatis.annotations.Param;


/**
* 描述： 服务实现层接口
* @author 
* @date 2018/03/05
*/
@Service
public class PositionpushServiceImpl implements PositionpushService{
	@Resource
	private PositionpushMapper positionpushMapper;
 	
 	/**
    * 描述：根据Id获取Positionpush对象
    * @param id
    */
    public Positionpush findById(Serializable id){
    	return positionpushMapper.findById(id);
    }

	@Override
	public List<Positionpush> findByUserName(Integer applicant) {
		return positionpushMapper.findByUserName(applicant);
	}

	/**
    * 描述：获取所有的Positionpush对象
    */
    public List<Positionpush> findAll(){
    	return positionpushMapper.findAll();
    }

	/**
    * 描述：新增保存Positionpush对象
    */
    public int save( Integer jobpostingid, Integer applicant){
    	return  positionpushMapper.save(jobpostingid,applicant);
    }

	/**
    * 描述：根据Id删除Positionpush对象
    * @param id
    */
    public int delete(Serializable id){
    	return  positionpushMapper.delete(id);
    }
	
	/**
    * 描述：更新Positionpush对象
    */
    public int update(Positionpush positionpush){
    	return  positionpushMapper.update(positionpush);
    }
    
    /**
     * 根据不确定的条件，动态查询
     */
    public List<Positionpush> query(Object params){
    	return  positionpushMapper.query(params);
    }
    
    /**
     * 根据不确定的条件，动态分页查询
     */
    public Page queryByPage(Object params, Page page){

    	return page;
    	
    }

}
